package com.education.online.service.impl;


import com.education.common.utils.Convert;
import com.education.online.mapper.OTalentMenuMapper;
import com.education.online.pojo.OTalentMenu;
import com.education.online.service.OTalentMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 职业达人视频目录表 服务层实现
 *
 * @author d
 * @date 2020-06-04 15:17:55
 */
@Service
public class OTalentMenuServiceImpl implements OTalentMenuService {

    @Autowired
    private OTalentMenuMapper oTalentMenuMapper;

    //查询职业达人视频目录表信息
    @Override
    public OTalentMenu selectOTalentMenuById(Integer id) {
        return oTalentMenuMapper.selectOTalentMenuById(id);
    }

    // 查询职业达人视频目录表列表
    @Override
    public List<OTalentMenu> selectOTalentMenuList(OTalentMenu oTalentMenu) {
        return oTalentMenuMapper.selectOTalentMenuList(oTalentMenu);
    }

    // 新增职业达人视频目录表
    @Override
    public int insertOTalentMenu(OTalentMenu oTalentMenu) {
        return oTalentMenuMapper.insertOTalentMenu(oTalentMenu);
    }

    //修改职业达人视频目录表
    @Override
    public int updateOTalentMenu(OTalentMenu oTalentMenu) {
        return oTalentMenuMapper.updateOTalentMenu(oTalentMenu);
    }

    //删除职业达人视频目录表对象
    @Override
    public int deleteOTalentMenuByIds(String ids) {
        return oTalentMenuMapper.deleteOTalentMenuByIds(Convert.toStrArray(ids));
    }
}